package sis.studentinfo;

import java.util.*;
import java.util.AbstractMap.SimpleEntry;

public class CourseSession extends Session {
       private CourseSession(
         String department, String number, Date startDate) {
           super(department, number, startDate);
   }
    
     public static CourseSession create(
         String department,
         String number,
         Date startDate) {          
       ValidateUtil.checkNullEmpty( new SimpleEntry("department",department),
                                    new  SimpleEntry("number",number),
                                    new  SimpleEntry("startDate",startDate));
      return new CourseSession(department, number, startDate);
   }

    @Override
    int getSessionLength() {
        return 16;
    }
    
}
